package com.yzk.auction.service;

import com.yzk.auction.dao.UserDao;
import com.yzk.auction.entity.Users;
import org.apache.commons.dbutils.QueryRunner;
import org.apache.commons.dbutils.handlers.BeanHandler;

import java.sql.SQLException;

/**
 * Author: 园中葵小组成员
 * Description:用户相关操作服务类
 *             对UserDao进行调用，对代码进行前置检查，或后置结果处理
 */
public class UserService {
    private UserDao userDao = new UserDao();
    public Users findByTelPwd(String tel, String pwd){
        Users users = userDao.findByTelPwd(tel, pwd);
        System.out.println(users);
        return users;
    }

}
